package com.xdemo.personal.socketserver.msg;

import com.xdemo.core.MessageType;

public class StoreMessage extends BasePlayerMessage {

	private int storeKey;
	
	public StoreMessage(){
		
	}
	
	public StoreMessage(int storeKey) {
		this.storeKey = storeKey;
	}
	
	@Override
	public void writeImpl() {
		writeInt(storeKey);
	}

	@Override
	public void readImpl() {
		storeKey = readInt();
	}
	
	public int getStoreKey() {
		return storeKey;
	}

	public void setStoreKey(int storeKey) {
		this.storeKey = storeKey;
	}

	@Override
	public Integer getType() {
		return MessageType.Store;
	}

}
